﻿using System;
using System.Collections.Generic;

namespace fly
{
    class Program
    {
        static void Main(string[] args)
        {
            //Console.WriteLine("Hello World!");
            //Ifly plane1 = new plane();
            //Ifly bird1 = new bird();
            //plane1.fly();
            //bird1.fly();
            //vehicle car1 = new car1(12, "大众");
            //car1.run();
            //car1.print();
            //car1 car2 = new car1(13, "小众");
            //car2.print();
            //car2.run();
            //bird1 = new plane();
            //bird1.fly();//试验接口
            //overload s1 = new overload(12, "小明");
            //overload s2 = new overload(12, "小明");
            //Console.WriteLine(s1 == s2);
            //overload s3 = s2;
            //Console.WriteLine(s3 == s2);
            //student stu1 = new student(12, "小华");
            //student stu2 = new student(18, "小光");
            //stu1 = stu2;
            //stu1.age = 8;
            List<int>s1= new List<int>() { 123, 456 };
            s1.Add(222);
            foreach(int num in s1)
            {
                if(num==222)
                {
                    Console.WriteLine("找到了");
                }

            }





            


        }
    }
}
